local rier_choose = fk.CreateSkill {
  name = "#th_rier_choose",
}

rier_choose:addEffect("active", {
  name = "#th_rier_choose",
  min_card_num = 1,
  target_num = 0,
  card_filter = function(self, player, to_select, selected)
    local to = Fk:getCardById(to_select)
    if #selected == 0 then
      return to and to.color ~= Card.NoColor and to.color ~= self.banned and not player:prohibitDiscard(to)
    end
    local c = Fk:getCardById(selected[1])
    return c and to and to.color ~= Card.NoColor and to.color ~= self.banned and not player:prohibitDiscard(to) and to.color == c.color
  end,
  target_filter = Util.FalseFunc,
})

return rier_choose